<template>
	<view>
    <z-nav-bar id="nav" bgColor="#ffffff"></z-nav-bar>
		<view style="font-size: 36rpx;font-weight: bold;color: #222;">
			{{newsInfo.title}}
		</view>
		<view style="font-size: 24rpx;margin: 12rpx 0;">
			<text style="color: #44689D;">{{newsInfo.createBy}}</text>
			<text style="color: #999999;margin-left: 16rpx;">{{newsInfo.createTime}}</text>
		</view>
		<image style="width: 686rpx;height: 360rpx;border-radius: 8rpx;" :src="newsInfo.coverImage" mode=""></image>
		<view style="padding: 16px;">
			<up-parse  :content="newsInfo.content"></up-parse>
		</view>
		<!-- <image style="width: 686rpx;height: 360rpx;border-radius: 8rpx;" src="http://www.xvopen.com/xiaoV/img1/banner/banner01.png" mode=""></image>
		<view style="margin: 12rpx 0 36rpx;color: #555;width: 686rpx;">
			1、清洗白衣、白内衣上的顽渍很难根除，这个时候取一片柠檬片煮水后把白色内衣放在水中浸泡，大约15分钟后清洗即可。
		</view>
		<image style="width: 686rpx;height: 360rpx;border-radius: 8rpx;" src="http://www.xvopen.com/xiaoV/img1/banner/banner01.png" mode=""></image>
		<view style="margin: 12rpx 0 36rpx;color: #555;width: 686rpx;">
			2、清洗衣物怪味有时衣物因晾晒不得当，会出现难闻的汗酸味，取白醋与水混合，浸泡有味道的衣服大约五分钟，然后把衣服放在通风处晒干就可以了！
		</view> -->
	</view>
</template>

<script setup>
import {ref,reactive } from "vue";
import { onLoad } from '@dcloudio/uni-app';
import {newsQuery} from '@/api/pagesShop'
const  id= ref('')
let newsInfo = ref('')
onLoad((options)=>{
  id.value =options.id
  loadNewsQuery()
  console.log(options)
})
const loadNewsQuery=()=>{
  newsQuery(id.value).then(res=>{
    console.log('res',res)
    newsInfo.value  = res
    console.log('newsInfo.value ',newsInfo )
  })

}

</script>

<style>
	page{
		background-color: #fff;
	}
</style>
<style lang="scss">
page{
	margin: 24rpx 32rpx;
}
</style>
